/////////////////////////////////////////////////////////////////////////
//
// Amuse Engine SDK - core/system
// Copyright( c) 2013.  All Rights Reserved
//
// File:		AEWin32Timer.cpp
// Author:		Gianluca Belardelli
// Date:		05/04/2014
//
/////////////////////////////////////////////////////////////////////////
#include <AECore.h>

AETimer::AETimer( AEBOOL32 bStart )
{
	if( bStart )
		m_uiHighResTimer = __rdtsc();
}

void AETimer::StartHighResTimer( void )
{
	m_uiHighResTimer = __rdtsc();
}

AEUINT64 AETimer::StopHighResTimer( void )
{
	return __rdtsc() - m_uiHighResTimer;
}

AEUINT64 AETimer::GetHighResTimerValue( void )
{
	return __rdtsc();
}

